﻿using System.Web.Services.Protocols;
using System.Xml;

namespace MedicService.Server.Exception
{   

    public class PrintTemplateException: SoapException
    {
        private static XmlNode CreateDetails()
        {
            System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
            System.Xml.XmlNode node = doc.CreateNode(XmlNodeType.Element,
                 SoapException.DetailElementName.Name, SoapException.DetailElementName.Namespace);
            node.InnerText = "PrintTemplateException";
            return node;
        }

        public PrintTemplateException()
            : base("Не определён шаблон по умолчанию", SoapException.ClientFaultCode, "", CreateDetails()) {
        }

    }
}